# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo01
# Description:
# Author:       98745
# Date:         2019/3/16
#-------------------------------------------------------------------------------

import  requests
from  bs4 import  BeautifulSoup
urll="http://www.taobao.com"
html=requests.get(urll)
sp=BeautifulSoup(html.text,"html.parser")
data1=sp.select(".nav-bd")
for data in data1:
    if data is not  None:
        print(data.text.replace("|"," ").strip())

